package org.example.domain;

import java.util.Date;
import java.util.List;

/**
 * @author Jimmy
 * @version 1.0
 */
public class User {
    private String id;
    private String email;
    private String username;
    private String password;
    private String station;
    private String telephone;
    private int state;
    private String gender;
    private Date birthday;
    private Date joinDate;
    private String deptId;
    private String token;
    private List<String> rid;

    public User() {
    }

    public User(String email, String username, String telephone) {
        this.email = email;
        this.username = username;
        this.telephone = telephone;
    }

    public String getStation() {
        return station;
    }

    public void setStation(String station) {
        this.station = station;
    }

    public String getId() {
        return id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public List<String> getRid() {
        return rid;
    }

    public void setRid(List<String> rid) {
        this.rid = rid;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Date getJoinDate() {
        return joinDate;
    }

    public void setJoinDate(Date joinDate) {
        this.joinDate = joinDate;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", email='" + email + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", station='" + station + '\'' +
                ", telephone='" + telephone + '\'' +
                ", state=" + state +
                ", gender='" + gender + '\'' +
                ", birthday=" + birthday +
                ", joinDate=" + joinDate +
                ", deptId='" + deptId + '\'' +
                ", token='" + token + '\'' +
                ", rid=" + rid +
                '}';
    }
}
